package com.springboot.cloud.sysadmin.organization.entity.form;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.springboot.cloud.common.web.entity.form.BaseForm;
import com.springboot.cloud.sysadmin.organization.entity.po.Resource;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@ApiModel
@Data
public class ResourceForm extends BaseForm<Resource> {

    @ApiModelProperty(value = "父级节点编号")
    private String parentId;

    @NotBlank(message = "资源名称不能为空")
    @ApiModelProperty(value = "资源名称")
    private String name;

    @ApiModelProperty(value = "菜单名称")
    private String title;

    @NotBlank(message = "资源编码不能为空")
    @ApiModelProperty(value = "资源编码")
    private String code;

    @ApiModelProperty(value = "资源类型")
    private String type;

    @ApiModelProperty(value = "资源路径")
    private String url;

    @ApiModelProperty(value = "资源方法")
    private String method;

    @ApiModelProperty(value = "显示顺序")
    private int orderNum;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "权限标识")
    private String perms;

    @ApiModelProperty(value = "是否为外链（0是 1否）")
    private String isFrame;

    @ApiModelProperty(value = "是否缓存（0缓存 1不缓存）")
    private String isCache;

    @ApiModelProperty(value = "是否隐藏（0否 1是）")
    private String isHidden;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "资源描述")
    private String description;

    @ApiModelProperty(value = "状态，true为可用")
    private Boolean enabled = true;

    @ApiModelProperty(value = "菜单显隐（1显示 0隐藏）")
    private Boolean visible;

    @ApiModelProperty(value = "菜单类型(0目录 1菜单 2按钮)")
    private String mold;
}
